package com.yc.hotel.util;

import javax.servlet.http.HttpSession;

import com.yc.hotel.dto.UserInfoDTO;

public class GetLoginUtil {

	public static UserInfoDTO getUser(HttpSession session) {
		Object obj = session.getAttribute(ConstantInfo.CURRENTMEMBERINFO);
		if (obj == null) {
			return null;
		}
		UserInfoDTO user = (UserInfoDTO)obj;
		return user;
	}
}
